﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<CourseSystem.Core.Entities.CourseGuideMenuInfo>" %>

<%@ Import Namespace="CourseSystem.Common.Helpers" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    课程导学子菜单
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <% Html.RenderPartial("AdminTopUc", Model.Name + "子菜单管理"); %>
    <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table03">
        <tr class="box03">
            <td height="28" colspan="4" align="center">
                <div align="right">
                </div>
                <div align="center">
                    <%=Html.ActionButton("新增","MenuSubEdit",new{cid=Model.Id})%>
                    &nbsp;
                    <%=Html.ActionButton("返回","Index",null)%>
                </div>
            </td>
        </tr>
    </table>
    <table width="100%" height="5" border="0" cellpadding="0" cellspacing="0" bordercolor="#FFFFFF">
        <tr>
            <td height="5" bgcolor="#FFFFFF">
            </td>
        </tr>
    </table>
    <div id="listDiv">
        <% Html.RenderAction("MenuSubListUc"); %>
    </div>
    <div id="editDiv" title="编辑专业">
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="HeaderContent" runat="server">
    <script type="text/javascript">
        $(function () {
            $("#editDiv").dialog({
                autoOpen: false,
                height: 350,
                width: 400,
                modal: true,
                /* buttons: {
                "关闭": function () {
                $(this).dialog("close");
                }
                },*/
                close: function () {
                    // allFields.val("").removeClass("ui-state-error");
                    window.location.reload();
                }
            });



            $("#addCollege")
			.click(function () {
			    $("#editDiv").html("loading...");
			    $("#editDiv").load(appRoot + 'Admin/SubjectEditUc/?cid=' + '<%=Model.Id %>');
			    $("#editDiv").dialog("open");
			});
        });
        var editClickA = function (id) {
            $("#editDiv").html("loading...");
            $("#editDiv").load(appRoot + 'Admin/SubjectEditUc/' + id + '?cid=' + '<%=Model.Id %>');
            $("#editDiv").dialog("open");
        };
    </script>
</asp:Content>
